package com.dolphin.serviceorder.remote;

import com.dolphin.common.dto.ResponseResult;
import com.dolphin.common.dto.TrsearchResponse;
import com.dolphin.common.response.TerminalResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("service-map")
public interface ServiceMapClient {

    @PostMapping("/terminal/aroundsearch")
    ResponseResult<List<TerminalResponse>> terminalAroundSearch(@RequestParam String center,@RequestParam Integer radius);
    @PostMapping("/terminal/trsearch")
    ResponseResult<TrsearchResponse> trsearch(@RequestParam String tid,@RequestParam Long starttime,@RequestParam Long endtime);

}
